package com.pet.server.po;

import static javax.persistence.GenerationType.IDENTITY;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * PetSay entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "pet_adopt_item")
public class PetAdoptItem implements java.io.Serializable {
	
	// Fields

	private Integer id;
	private Integer adoptId;
	private Integer userId;
	private String phone;
	private String qq;
	private Date createTime;
	private String description;
	 private String state; 

	// Constructors

	/** default constructor */
	public PetAdoptItem() {
	}

	/** minimal constructor */
	public PetAdoptItem(Date createTime) {
		this.createTime = createTime;
	}

	/** full constructor */
	public PetAdoptItem(Integer adoptId, Integer userId, String phone, String qq,
			Date createTime, String description) {

		this.id = id;
		this.adoptId = adoptId;
		this.userId = userId;
		this.phone = phone;
		this.qq = qq;
		this.createTime = createTime;
		this.description = description;
		this.state = state;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "created_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the adoptId
	 */
	@Column(name = "adopt_id", length = 11)
	public Integer getAdoptId() {
		return adoptId;
	}

	/**
	 * @param adoptId the adoptId to set
	 */
	public void setAdoptId(Integer adoptId) {
		this.adoptId = adoptId;
	}

	/**
	 * @return the userId
	 */
	@Column(name = "user_id", length = 11)
	public Integer getUserId() {
		return userId;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	/**
	 * @return the phone
	 */
	@Column(name = "phone", length = 20)
	public String getPhone() {
		return phone;
	}

	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * @return the qq
	 */
	@Column(name = "qq", length = 16)
	public String getQq() {
		return qq;
	}

	/**
	 * @param qq the qq to set
	 */
	public void setQq(String qq) {
		this.qq = qq;
	}

	/**
	 * @return the description
	 */
	@Column(name = "description", length = 256)
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the state
	 */
	@Column(name = "state", length = 2)
	public String getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}
	
}